<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">
function aa(){
	var str1 = {"44":[{"categoryId":1,"categoryName":"有报天天读","pic":"newspaper","serviceClass":44},{"categoryId":2,"categoryName":"天气预报","pic":"weather","serviceClass":44},{"categoryId":3,"categoryName":"移动精品","pic":"yidong","serviceClass":44},{"categoryId":4,"categoryName":"GPRS优惠套餐","pic":"gprs","serviceClass":44}]};
	var aaa = JSON.stringify(str1);
	var dataObj=eval("("+aaa+")");
	var testObj = dataObj["44"];
	alert(testObj[1]);
	for(var i=0;i<testObj.length;i++){
		alert(testObj[i]["categoryId"]+";"+testObj[i]["categoryName"]+";"+testObj[i]["pic"]+";"+testObj[i]["serviceClass"]);
	}
}
</script>
</head>
<body>
	这是MyIndex.jsp<a href="#" onclick="aa();">aa</a>
</body>
</html>